Repository navigation
WIP: move shared mcpx daemon files into plugin core - #7166
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
💡 Codex Review
code/pkgs/mcpx/plugin/core/ops.gen.ts
Lines 1 to 2 in cc5cdff
The relocation leaves Go validation and generation code pointing at the deleted paths: internal/api/plugin_ts_test.go:13 still reads and regenerates plugin/opencode/mcpx/ops.gen.ts, while internal/cli/parity_test.go:16 and internal/refdoc/regions_test.go:97 still read the old daemon.ts location. Ordinary Go test runs consequently fail with missing-file errors; running the documented regeneration command instead recreates the old operation table without updating the new core copy. Update these filesystem consumers alongside the move so validation and regeneration operate on the relocated sources.
code/pkgs/mcpx/plugin/core/ops.test.ts
Lines 2 to 4 in cc5cdff
Moving ops.test.ts outside plugin/opencode/mcpx/ removes its real-daemon cases from TestThePluginSuiteRunsAgainstARealDaemon: internal/e2e/plugin_test.go:30 still launches Bun only against that directory, despite supplying OPS_LIVE_SOCKET specifically for these tests. The Bun steps in .github/workflows/mcpx.yml:242,374 likewise retain the old directory filter. After the remaining relocation errors are fixed, these commands will silently omit the moved discovery and operation suites, including the live session-isolation and artifact round-trip checks. Expand the runners to include plugin/core/ while preserving the live-daemon environment.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # pkgs/mcpx/internal/api/plugin_ts.go
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9dd72a5b4f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| type DiscoverOptions, | ||
| type Target, | ||
| } from "./mcpx/daemon.ts"; | ||
| } from "../core/daemon.ts"; |
There was a problem hiding this comment.
Match the dogfood import to its deployed directory layout
When OpenCode loads the repository's .opencode/plugin/mcpx-session.ts, this import resolves to .opencode/core/daemon.ts, but the relocated file is at .opencode/plugin/core/daemon.ts. A repository-wide path search confirms there is no .opencode/core/daemon.ts. Consequently, the dogfood plugin fails during module loading, disabling its session/environment hooks and tools. The source and dogfood adapters now have different relative layouts, so copying the source adapter unchanged no longer works; adjust the deployed layout or its import and corresponding sync check.
Useful? React with 👍 / 👎.
| type DiscoverOptions, | ||
| type Target, | ||
| } from "./mcpx/daemon.ts"; | ||
| } from "../core/daemon.ts"; |
There was a problem hiding this comment.
Include the shared core in the documented plugin installation
For users following plugin/opencode/README.md:26–28, the installation still copies only mcpx-session.ts and mcpx/ into ~/.config/opencode/plugin/. This new import instead requires ~/.config/opencode/core/daemon.ts, and neither that copy command nor the plugin/opencode/ subtree includes the relocated core. Repository-wide searches found no replacement installation step that supplies it. Fresh installations and upgrades following those instructions therefore fail to load the session plugin; the optional TUI has the same dependency. Update the installation layout and copy instructions alongside the relocation.
Useful? React with 👍 / 👎.
|
🤖 Agent note · Codex findings addressed; merging (task 14700, lane code-t) Both P2s from the Codex review are fixed (9dd72a5, plus 3ebb272 after merging current main):
Verification at head 3ebb272:
The "WIP:" prefix is dropped by this merge — the relocation is complete. Merging under the standing authority; remaining CI is in the fleet runner backlog and nothing at the new head has failed. |
Opened by the branch-disposition execution (2026-11-07) from branch
queue/3692-1861-plugin-core-v1-v2.Branch origin: queue branch for issue #3692.
This branch was laptop-local work (or a stranded remote branch) with real changes ahead of
mainand no PR. Per Drew's 2026-11-07 branch-disposition ruling, ahead branches with real changes get a PR; this PR surfaces the work for triage instead of leaving it stranded on a branch.Triage owner: batch issue in developing-today/code, "Unowned PR batch from branch disposition (2026-11-07)". Outcome per batch triage: close with reason, or route to impl/finish/merge as a follow-on fix task.
Evidence: branch-ahead review
~/workspace/scratch/branch-ahead-review-2026-11-07.md; execution log~/workspace/scratch/branch-disposition-2026-11-07.md.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.